package com.example.service;

import com.example.base.BaseCrudDao;
import com.example.base.BaseCrudService;
import com.example.dao.BookDao;
import com.example.entity.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service("BookService")
public class BookService extends BaseCrudService<BaseCrudDao<Book>, Book> {

    @Autowired
    BookDao bookDao;

    /**
     * 根据书名和出版社查询（完全匹配）
     */
    public Book selectByNameAndPublisher(String bookName,String bookPublisher){
        return bookDao.selectByNameAndPublisher(bookName, bookPublisher);
    }


}
